<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>Demo</title>
    <link rel="stylesheet" href="../output/css/all.css"/>
    <link href="http://pic.ofcard.com/themes/admin/plugins/zTree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet"
          type="text/css"/>
</head>
<body style="background-color: #fff !important;" ng-app="admin" ng-controller="DemoCtrl">
    <ui-container style="display: none">

        <div class="row">
            <div class="col-md-2">
            </div>

            <div class="col-md-2">
            </div>


            <div class="col-md-8">
                <ui-form column="1">

                    <input ng-model="bbb"/>

                    <ui-form-input label="normal" placeholder="abc" help="help" model="bbb" ></ui-form-input>
                    <ui-form-date label="date" placeholder="abc" help="help" model="aaa"></ui-form-date>
                    <ui-form-select label="select">
                        <option value="a">aa</option>
                        <option value="a">aa</option>
                    </ui-form-select>
                    <ui-form-switch label="switch" name="qqq" on-value="1" off-value="2" on-text="123" off-text="321"></ui-form-switch>
                    <ui-form-region  label="region"></ui-form-region>
                    <ui-form-user-select label="user"></ui-form-user-select>
                    <ui-form-textarea label="&lt;span style='color:red'&gt;*&lt;/span&gt; textarea："></ui-form-textarea>
                </ui-form>
            </div>
        </div>



    </ui-container>
</body>
<script src="../output/assets/js/lib.min.js"></script>
<script src="../output/assets/js/jquery.mockjax.js"></script>
<script src="http://pic.ofcard.com/themes/admin/plugins/zTree/jquery.ztree.core-3.5.min.js"
        type="text/javascript"></script>
<script src="http://pic.ofcard.com/themes/admin/plugins/zTree/jquery.ztree.excheck-3.5.js"
        type="text/javascript"></script>
<script src="http://pic.ofcard.com/themes/admin/plugins/zTree/jquery.ztree.exedit-3.5.js"
        type="text/javascript"></script>

<script>
    var i = 0;
    var a = 0;
    $.mockjax({
        url: '/test',
        response: function () {
            var aa = [],
                    m = 5;
            for (; i < m; i++) {
                aa.push({
                    a: i,
                    b: Math.random(),
                    c: Math.random(),
                    d: Math.random(),
                    e: '2014-11-1' + i + ' 11:11:11'
                })
            }
            this.responseText = {
                data: {
                    aaData: aa,
                    iTotalDisplayRecords: 1000,
                    iTotalRecords: 1000
                },
                result: 1
            }
        }
    });
</script>
<script src="../output/assets/js/angular.1.3.8.min.js"></script>
<script src="../output/assets/js/all.js"></script>
<script>


    angular.module('admin').controller('DemoCtrl', function ($scope, uiDialog) {
        $scope.managePotential = function () {
            var dialog = uiDialog.load('modal.html', 'DDCtrl', $scope);
            setTimeout(function () {
                alert('我要删除了')
                dialog.close();
            }, 2000)
        }
        $scope.treeOneClick = function (treeNode, index) {
            alert(1);
        }
        $scope.treeTwoClick = function (treeNode, index) {
            alert(2);
        }

        console.info($scope);
    })
</script>
</html>

